package com.lin.cloud.disk.entity.request.company;

import com.lin.cloud.disk.common.entity.request.AccountRequestDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;

/**
 * 添加公司主体信息请求实体类
 * @author ljc
 * @date 2021/1/21 18:07
 */
@Data

@ToString(callSuper = true)
public class AddCompanyInfoRequest{


    @NotBlank(message = "公司名称不能为空")
    @ApiModelProperty(value = "名称", name = "companyName")
    private String companyName;

    @NotBlank(message = "公司地址不能为空")
    @ApiModelProperty(value = "地址", name = "companyAddress")
    private String companyAddress;

    @NotBlank(message = "公司法人不能为空")
        @ApiModelProperty(value = "法人", name = "legalPerson")
    private String legalPerson;

    @NotNull(message = "公司注册不能为空")
    @ApiModelProperty(value = "注册时间", name = "registerTime")
    private Date registerTime;

    @Pattern(regexp = "https{0,1}://[^\\x{4e00}-\\x{9fa5}\\n\\r\\s]{3,}", message = "Logo图片地址解析错误")
    @ApiModelProperty(value = "LOGO", name = "logoUrl")
    private String logoUrl;

    @Pattern(regexp = "^1[0-9]{10}$", message = "联系电话不能为空")
    @ApiModelProperty(value = "电话", name = "phone")
    private String phone;

    @NotBlank(message = "公司邮箱不能为空")
    @Email(message = "")
    @ApiModelProperty(value = "邮箱", name = "email")
    private String email;

    @Pattern(regexp = "https{0,1}://[^\\x{4e00}-\\x{9fa5}\\n\\r\\s]{3,}", message = "公司官网地址解析错误")
    @ApiModelProperty(value = "官网", name = "webAddress")
    private String webAddress;

    @ApiModelProperty(value = "简介", name = "recommend")
    private String recommend;

    @ApiModelProperty(value = "创建人", name = "createBy")
    private String createBy;
}
